import React from 'react'
import { Select } from 'antd';
import '@/assets/scss/ych//One/AddMoney.scss'

const { Option } = Select;

export default function QuerySelect(props) {
    function handleChange() {

    }

    return (
        <>
            <Select size="large" defaultValue={props.defaultValue} style={{ width: props.inputWidth, color: "#999" }} onChange={handleChange}>
                {
                    props.List.map( (item, index) => {
                        return (
                            <Option value={item} key={index}>{item}</Option>
                        )
                    })
                }
            </Select>
        </>
    )
}